package com.deram.ctin.serv.search.entity.solr.search;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(description = "企业搜索条件")
public class WebEnterSearchParam {

    @ApiModelProperty(value = "关键词")
    private String keywords = "";

    @ApiModelProperty(value = "成立日期 (1:成立一年，2：1-5年，3：5-10年，4：10-15年，5：15年以上)")
    private Integer creationDate;

    @ApiModelProperty(value = "省份地区-省 （直辖市，特别行政区归在省）")
    private String province = "";

    @ApiModelProperty(value = "省份地区-市（如果是直辖市或者特别行政区无需此项）")
    private String  city = "";

    @ApiModelProperty(value = "所属行业（中文）")
    private String industryInvolved = "";

    @ApiModelProperty(value = "经营状况(直接传经营状况的名字)")
    private String  managementStatus = "";

    @ApiModelProperty(value = "注册资本上限")
    private Double registeredCapitalUpper;

    @ApiModelProperty(value = "注册资本下限")
    private Double registeredCapitalLower;

    @ApiModelProperty(value = "当需要海关搜索的时候传true")
    private Boolean hasCustoms = false;

    //海关

    @ApiModelProperty(value = "进出口类型(0：进口，1：出口，如果为进出口该项参数不需要传)")
    public Integer type;

    @ApiModelProperty(value = "美元单价下限")
    private Double dollarPricePriceLower;

    @ApiModelProperty(value = "美元单价上限")
    private Double dollarPricePriceUpper;

    @ApiModelProperty(value = "美元总价上限")
    private Double dollarAmountUpper;

    @ApiModelProperty(value = "美元总价下限")
    private Double dollarAmountLower;

    @ApiModelProperty(value = "法定重量上限")
    private Double leaglWeightUpper;

    @ApiModelProperty(value = "法定重量下限")
    private Double leaglWeightLower;

    @ApiModelProperty(value = "HS_CODE")
    private String hsCode = "";

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat
    private Date startDate;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat
    private Date endDate;

    @ApiModelProperty(value = "产品名称(中文)")
    private String hsName = "";

    @ApiModelProperty(value = "规格型号")
    private String hsModels = "";

    @ApiModelProperty(value = "贸易方式 （直接传方式的名称）")
    private String tradeModel = "" ;

    @ApiModelProperty(value = "进出口岸 （直接传口岸名字）")
    private String exportCustoms = "";

    @ApiModelProperty(value = "申报单位（中文）")
    private String applicationUnit = "";

    @ApiModelProperty(value = "货主单位 （中文）")
    private String ownerUnit = "";

    @ApiModelProperty(value = "经营单位 （中文）")
    private String businessUnit = "";


    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public Integer getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Integer creationDate) {
        this.creationDate = creationDate;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getIndustryInvolved() {
        return industryInvolved;
    }

    public void setIndustryInvolved(String industryInvolved) {
        this.industryInvolved = industryInvolved;
    }

    public String getManagementStatus() {
        return managementStatus;
    }

    public void setManagementStatus(String managementStatus) {
        this.managementStatus = managementStatus;
    }

    public Double getRegisteredCapitalUpper() {
        return registeredCapitalUpper;
    }

    public void setRegisteredCapitalUpper(Double registeredCapitalUpper) {
        this.registeredCapitalUpper = registeredCapitalUpper;
    }

    public Double getRegisteredCapitalLower() {
        return registeredCapitalLower;
    }

    public void setRegisteredCapitalLower(Double registeredCapitalLower) {
        this.registeredCapitalLower = registeredCapitalLower;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Double getDollarPricePriceLower() {
        return dollarPricePriceLower;
    }

    public void setDollarPricePriceLower(Double dollarPricePriceLower) {
        this.dollarPricePriceLower = dollarPricePriceLower;
    }

    public Double getDollarPricePriceUpper() {
        return dollarPricePriceUpper;
    }

    public void setDollarPricePriceUpper(Double dollarPricePriceUpper) {
        this.dollarPricePriceUpper = dollarPricePriceUpper;
    }

    public Double getDollarAmountUpper() {
        return dollarAmountUpper;
    }

    public void setDollarAmountUpper(Double dollarAmountUpper) {
        this.dollarAmountUpper = dollarAmountUpper;
    }

    public Double getDollarAmountLower() {
        return dollarAmountLower;
    }

    public void setDollarAmountLower(Double dollarAmountLower) {
        this.dollarAmountLower = dollarAmountLower;
    }

    public Double getLeaglWeightUpper() {
        return leaglWeightUpper;
    }

    public void setLeaglWeightUpper(Double leaglWeightUpper) {
        this.leaglWeightUpper = leaglWeightUpper;
    }

    public Double getLeaglWeightLower() {
        return leaglWeightLower;
    }

    public void setLeaglWeightLower(Double leaglWeightLower) {
        this.leaglWeightLower = leaglWeightLower;
    }

    public String getHsCode() {
        return hsCode;
    }

    public void setHsCode(String hsCode) {
        this.hsCode = hsCode;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getHsName() {
        return hsName;
    }

    public void setHsName(String hsName) {
        this.hsName = hsName;
    }

    public String getHsModels() {
        return hsModels;
    }

    public void setHsModels(String hsModels) {
        this.hsModels = hsModels;
    }

    public String getTradeModel() {
        return tradeModel;
    }

    public void setTradeModel(String tradeModel) {
        this.tradeModel = tradeModel;
    }

    public String getExportCustoms() {
        return exportCustoms;
    }

    public void setExportCustoms(String exportCustoms) {
        this.exportCustoms = exportCustoms;
    }

    public String getApplicationUnit() {
        return applicationUnit;
    }

    public void setApplicationUnit(String applicationUnit) {
        this.applicationUnit = applicationUnit;
    }

    public String getOwnerUnit() {
        return ownerUnit;
    }

    public void setOwnerUnit(String ownerUnit) {
        this.ownerUnit = ownerUnit;
    }

    public String getBusinessUnit() {
        return businessUnit;
    }

    public void setBusinessUnit(String businessUnit) {
        this.businessUnit = businessUnit;
    }

    public Boolean getHasCustoms() {
        return hasCustoms;
    }

    public void setHasCustoms(Boolean hasCustoms) {
        this.hasCustoms = hasCustoms;
    }
}
